package GaoYuXuan.Homework0715;

/**
 * @author 盖
 * @version 1.0
 * @since 2022-07-15 23:15:55
 */
public class ClassDemo3 {
    public static void main(String[] args) {
        String s1 = "lkasdfnl",s2 = "lkasd";
        System.out.println(s1.compareTo(s2));
        System.out.println("z".compareTo(s1));
        System.out.println(s1.contains("asd"));
        System.out.println(s1.startsWith("lk"));
        System.out.println(s1.endsWith("fnl"));
        System.out.println(s1.indexOf("asd"));
        System.out.println(s1.replace("l", "L"));
        System.out.println(s1.replace("asd", "erwasd"));
        String s3 = "   oasdnf    ";
        s3 = s3.trim();
        System.out.println(s3);
    }
}